#include <stdio.h>

int main() {
	int a[20] = {1, 1}, i, m = 0, n, q = 0;
	for (i = 2; i < 20; i++)
		a[i] = a[i - 1] + a[i - 2];
	for (i = 1; i < 6; i++) {
		for (n = 1; n < 5; n++) {
			printf("%6d", a[q]);
			m = m + a[q];
			q++;
		}
		printf("\n");
	}
	printf("s=%d", m);
}
